package com.igrowing.api.appclientsdk.utils;

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;

public class Encrypt {

    public static String encrypt(String body , String secretKey)
    {
        Digester digester= new Digester(DigestAlgorithm.SHA256);
        String content = body + "." + secretKey;
        return digester.digestHex(content);
    }

}